home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / VCSLID.ZIP / MAKEFILE < prev    next >
Text File  |  1993-08-31  |  2KB  |  106 lines

  1. ##################################################################
  2. #
  3. #     Copyright 1993  Northeast Data Corp.  All Rights Reserved
  4. #
  5. ##################################################################
  6.  
  7. ##################################################################
  8. #
  9. #  makefile
  10. #
  11. #  Builds the slider test application
  12. #
  13. #  Author:     Wade H. Cobb
  14. #
  15. #  Date:       August 1993
  16. #
  17. ##################################################################
  18.  
  19. ##### APP Macros #####
  20. APPNAME    = slidetst
  21. APPSRCS    = $(APPNAME).c 
  22. APPOBJS    =
  23.  
  24. ### For C7 compiler ###
  25. C7=1
  26.  
  27. ##### APP Library Macros #####
  28. APPLIBS    = libw llibcew slider
  29. APPMOD       = -AL
  30.  
  31. ##### APP Include Macros #####
  32. APPINCLS   = $(APPNAME).h
  33.  
  34. ##### APP Resource Macros #####
  35. APPRCFILES = $(APPNAME).ico $(APPNAME).rc
  36.  
  37. ##### DEBUG Version Built #####
  38. DEBUG    = 1
  39.  
  40. ##### Build Option Macros #####
  41. !if $(DEBUG)
  42. DDEF    = -DDEBUG
  43. CLOPT    = -Zid -Od
  44. MOPT    = -Zi
  45. LOPT    = /CO /LI /MAP
  46. !else
  47. DDEF    =
  48. CLOPT    = -Os
  49. LOPT    =
  50. !endif
  51.  
  52. ##### General Macros #####
  53. DEF    =
  54.  
  55. ##### Tool Macros #####
  56. ASM    = masm -Mx $(MOPT) $(DDEF) $(DEF)
  57. CC    = cl -nologo -c $(APPMOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF) 
  58. CC2    = cl -nologo -c $(DLLMOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
  59. LINK    = link /NOD /NOE $(LOPT)
  60. RC    = rc $(DDEF) $(DEF)
  61. HC    = hc
  62.  
  63. ##### Inference Rules #####
  64. .c.obj:
  65.     $(CC2) $*.c
  66.  
  67. .asm.obj:
  68.     $(ASM) $*.asm;
  69.  
  70. .rc.res:
  71.     $(RC) -r $(DEMO) $*.rc
  72.  
  73. ##### Main (default) Target #####
  74. goal:  $(APPNAME).exe
  75.  
  76. ##### Dependents For Goal and Command Lines #####
  77. slidetst.obj: slidetst.c slider.h
  78.     $(CC) $*.c
  79.  
  80. $(APPNAME).exe: $(APPSRCS:.c=.obj) slidetst.def $(APPNAME).res
  81.     $(LINK) @<<
  82.     $(APPSRCS:.c=.obj) $(APPOBJS),
  83.     $(APPNAME).exe,
  84.     $(APPNAME).map,
  85.     $(APPLIBS),
  86.     slidetst.def
  87. <<
  88.     $(RC) -T $(APPNAME).res
  89. !if $(DEBUG)
  90. !if !$(C7)
  91.     cvpack -p $(APPNAME).exe
  92. !endif
  93. !endif
  94.  
  95. ##### Dependents #####
  96. $(APPSRCS:.c=.obj): $(APPINCLS)
  97. $(APPNAME).res: $(APPINCLS) $(APPRCFILES)
  98.  
  99. ##### Clean Directory #####
  100. clean:
  101.     -del *.obj
  102.     -del *.res
  103.     -del *.map
  104.     -del *.sym
  105.     -del *.lib
  106.